﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="EditGovOfficeRegion.aspx.cs" Inherits="SD.Web.Views.Government.EditGovOfficeRegion" %>

<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });
    </script>
</asp:Content>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="ContentTitle" runat="server">
    <h2>
        Government Office Region Detail</h2>
</asp:Content>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
    <div class="grid740 simplebox relative">
        <!-- start tabs codes -->
        <asp:FormView ID="GovOfficeRegionFormView" runat="server" Width="100%">
            <ItemTemplate>
                <div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
                    <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
                        <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#tabs-1">
                            Details</a> </li>
                    </ul>
                    <asp:Button CssClass="st-button top-right-cornor" Style="margin-right: 120px;" ID="ButtonSetActive"
                        runat="server" Text="Set Active Status" OnClick="ButtonSetActive_Click" />
                    <asp:Button CssClass="st-button top-right-cornor" Style="margin-right: 60px;" ID="ButtonSave"
                        runat="server" Text="Save" OnClick="ButtonSave_Click" />
                    <asp:Button CssClass="st-button top-right-cornor" ID="ButtonBack" runat="server"
                        Text="Back" PostBackUrl="~/Views/Government/GovOfficeRegionList.aspx" OnClick="ButtonBack_Click"
                        CausesValidation="False" />
                    <div class="clear">
                    </div>
                    <div id="tabs-1" class="ui-tabs-panel ui-widget-content ui-corner-bottom">
                        <div class="simplebox">
                            <div class="st-form-line-noleft">
                                <asp:Label ID="LabelName" CssClass="st-labeltext  level2" runat="server">Government Office Region Name&nbsp;<span style="color: red; visibility: visible;">(*)</span></asp:Label>
                                <asp:TextBox ID="TextBoxName" Text='<%# Eval("GovOfficeRegionName") %>' CssClass="st-forminput"
                                    runat="server" Width="300px" Style="max-width: 300px;"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" runat="server" ErrorMessage="Required"
                                    ControlToValidate="TextBoxName"></asp:RequiredFieldValidator>
                            </div>
                            <div class="st-form-line-noleft">
                                <asp:Label ID="LabelDescription" CssClass="st-labeltext  level2" runat="server" Text="Description"></asp:Label>
                                <asp:TextBox ID="TextBoxDescription" Text='<%# Eval("Description") %>' CssClass="st-forminput"
                                    runat="server" TextMode="MultiLine" Width="300px" Style="max-width: 300px;" Enabled="True"
                                    Rows="5"></asp:TextBox>
                            </div>
                            <div class="st-form-line-noleft">
                                <asp:Label ID="LabelCounty" CssClass="st-labeltext  level2" runat="server" Text="County"></asp:Label>
                                <asp:TextBox ID="TextBoxCounty" CssClass="st-forminput st-disable" runat="server"
                                    TextMode="MultiLine" Width="300px" Style="max-width: 300px;" Rows="5" ReadOnly="True"></asp:TextBox>
                            </div>
                            <div class="st-form-line-noleft">
                                <asp:Label ID="LabelMessage" runat="server" Font-Size="Medium" ForeColor="BlueViolet">All fields have marked (*) are required!</asp:Label>
                            </div>
                        </div>
                    </div>
                </div>
            </ItemTemplate>
            <EmptyDataTemplate>
                <div class="simple-tips">
                    <h2>
                        Specified Government Office Region does not exist !</h2>
                    <ul>
                        <li>1. Government Office Region Id is invalid</li>
                        <li>2. Not exist temporary</li>
                    </ul>
                    <a class="close tips" href="#" original-title="Close">close</a>
                </div>
            </EmptyDataTemplate>
        </asp:FormView>
        <!-- end tabs codes -->
    </div>
</asp:Content>
